{template 'admin','header'}
    <form action="admin/member.php?action=search" name="form"  onsubmit="return r_submit(this);">
    <table cellpadding="0" cellspacing="1" class="table_list">
        <caption>校友查询</caption>
        <tr>
            <td  class="align_c">
                专业/班级：{form::type_level_select('types','types','major',$major_str)}
            </td>
            <td  class="align_c">
                姓名：<input type="text" name="truename" value="{$truename}" />
            </td>
            <td  class="align_c">
                联系方式：<input type="text" name="tel" value="{$tel}" />
            </td>
            <td  class="align_c">
                email：<input type="text" name="email" value="{$email}" />
                <input type="submit" class="button_style" value="查询"/>
            </td>
        </tr>
    </table>
    </form>
<form action="admin/user.php?action=listorder" name="form1"  method="POST" onsubmit="return r_submit(this);">
    <table cellpadding="0" cellspacing="1" class="table_list">
        <caption>校友管理</caption>
        <tr>
            <th width="80" class="align_c"><input type="checkbox" onclick="checkall(this,'uid')" id="chkall">全选/取消</th>
            <th width="5%">ID</th>
            <th>email</th>
            <th>真实姓名</th>
            <th>专业/班级</th>
            <th>联系方式</th>
            <th>所在单位</th>
            <th>状态</th>
            <th width="320">管理操作</th>
        </tr>
        {loop $user_list $user}
        <tr>
            <td class="align_c">
                <input id="uid" name="mid[]" type="checkbox" id="checkbox"  value="{$user['mid']}"/>
            </td>
            <td class="align_c">{$user['mid']}</td>
            <td class="align_c">{$user['email']}</td>
            <td class="align_c">{$user['truename']}</td>
            <td class="align_c">{$major_types[$user['major']]['tname']} / {$major_types[$user['class']]['tname']}</td>
            <td class="align_c">{$user['tel']}</td>
            <td class="align_c">{$user['department']}</td>
            <td class="align_c">{if $user['status']==1}未审核{else}审核通过{/if}</td>
            <td class="align_c">
               <a href="admin/member.php?action=upd&mid={$user['mid']}&forward={$forward}">修改</a>
                
            </td>
        </tr>
        {/loop}
    </table>
    <div class="button_box">
        <input class="button_style" name="del" type="button" value=" 批量删除 " onclick="if(confirm('确定要删除选中的用户？')){change_opt('form1','{$self_dir}/member.php?action=del_all');}"/>
        <input class="button_style" name="add" type="button" value=" 添加校友 " onclick="self.location='{$self_url}?action=add&forward={$forward}'"/>
        
    </div>
    </form>
    <div id="pages">
        {$user_pages}
    </div>    
{template 'admin','footer'}
